﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;





using System.Drawing;



namespace NSApplication

{

    public class UIService
    {


        static UIService currentService;

        public static UIService CurrentService
        {
            get
            {

                if (currentService == null)
                {
                    currentService = new UIService();

                }

                return UIService.currentService;
            }

        }





        //PropertyGrid _propertyGrid;

        //public PropertyGrid PropertyGrid
        //{
        //    get { return _propertyGrid; }
        //    set { _propertyGrid = value;

        //    this.OnSetPropertyGrid();
               
            
        //    }
        //}


        //protected void OnSetPropertyGrid()
        //{

        //    //这里我们练习测试扩充类型

        //    //PropertyEditor pe = new PropertyEditor(typeof (Font),"Font",EditorKeys.FontFamilyEditorKey);


        //    //this._propertyGrid.Editors.Add(pe);
 
        //}


        //public void ShowProperty(object o)
        //{
        //    this._propertyGrid.SelectedObject = o;

        //}


        //public void ShowProperty(object[] oArray)
        //{
        //    this._propertyGrid.SelectedObjects = oArray;
        //}



    }
}
